<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->

<%
	'## 파라미터 변수 선언부
	fullLotNo	= Request("fullLotNo")
	lotSubNo	= Request("lotSubNo")
	types		= Request("type")
	rank			= Request("rank")
	checkDt	= Request("checkDt")
	chk1		= Request("chk1")
	chk2		= Request("chk2")
	chk3		= Request("chk3")
	chk4		= Request("chk4")
	chk5		= Request("chk5")
	chk6		= Request("chk6")
	chk7		= Request("chk7")
	chk8		= Request("chk8")
	chk9		= Request("chk9")
	chk10		= Request("chk10")
	chk11		= Request("chk11")
	chk12		= Request("chk12")
	chk13		= Request("chk13")
	chk14		= Request("chk14")
	chk15		= Request("chk15")
	chk16		= Request("chk16")
	chk17		= Request("chk17")
	chk18		= Request("chk18")
	chk19		= Request("chk19")
	chk20		= Request("chk20")

	chk1a		= Request("chk1a")
	chk2a		= Request("chk2a")
	chk3a		= Request("chk3a")
	chk4a		= Request("chk4a")
	chk5a		= Request("chk5a")
	chk6a		= Request("chk6a")
	chk7a		= Request("chk7a")
	chk8a		= Request("chk8a")
	chk9a		= Request("chk9a")
	chk10a		= Request("chk10a")
	chk11a		= Request("chk11a")
	chk12a		= Request("chk12a")
	chk13a		= Request("chk13a")
	chk14a		= Request("chk14a")
	chk15a		= Request("chk15a")
	chk16a		= Request("chk16a")
	chk17a		= Request("chk17a")
	chk18a		= Request("chk18a")
	chk19a		= Request("chk19a")
	chk20a		= Request("chk20a")
	
	chk1b		= Request("chk1b")
	chk2b		= Request("chk2b")
	chk3b		= Request("chk3b")
	chk4b		= Request("chk4b")
	chk5b		= Request("chk5b")
	chk6b		= Request("chk6b")
	chk7b		= Request("chk7b")
	chk8b		= Request("chk8b")
	chk9b		= Request("chk9b")
	chk10b		= Request("chk10b")
	chk11b		= Request("chk11b")
	chk12b		= Request("chk12b")
	chk13b		= Request("chk13b")
	chk14b		= Request("chk14b")
	chk15b		= Request("chk15b")
	chk16b		= Request("chk16b")
	chk17b		= Request("chk17b")
	chk18b		= Request("chk18b")
	chk19b		= Request("chk19b")
	chk20b		= Request("chk20b")

	If lotSubNo = "" Then lotSubNo = 0 End If 
	If rank = "" Then rank = 0 End If 
	If chk1a =	"" Then chk1a = 0 End If
	If chk2a =	"" Then chk2a = 0 End If
	If chk3a =	"" Then chk3a = 0 End If
	If chk4a =	"" Then chk4a = 0 End If
	If chk5a =	"" Then chk5a = 0 End If
	If chk6a =	"" Then chk6a = 0 End If
	If chk7a =	"" Then chk7a = 0 End If
	If chk8a =	"" Then chk8a = 0 End If
	If chk9a =	"" Then chk9a = 0 End If
	If chk10a =	"" Then chk10a = 0 End If
	If chk11a =	"" Then chk11a = 0 End If
	If chk12a =	"" Then chk12a = 0 End If
	If chk13a =	"" Then chk13a = 0 End If
	If chk14a =	"" Then chk14a = 0 End If
	If chk15a =	"" Then chk15a = 0 End If
	If chk16a =	"" Then chk16a = 0 End If
	If chk17a =	"" Then chk17a = 0 End If
	If chk18a =	"" Then chk18a = 0 End If
	If chk19a =	"" Then chk19a = 0 End If
	If chk20a =	"" Then chk20a = 0 End If
	If chk1b =	"" Then chk1b = 0 End If
	If chk2b =	"" Then chk2b = 0 End If
	If chk3b =	"" Then chk3b = 0 End If
	If chk4b =	"" Then chk4b = 0 End If
	If chk5b =	"" Then chk5b = 0 End If
	If chk6b =	"" Then chk6b = 0 End If
	If chk7b =	"" Then chk7b = 0 End If
	If chk8b =	"" Then chk8b = 0 End If
	If chk9b =	"" Then chk9b = 0 End If
	If chk10b =	"" Then chk10b = 0 End If
	If chk11b =	"" Then chk11b = 0 End If
	If chk12b =	"" Then chk12b = 0 End If
	If chk13b =	"" Then chk13b = 0 End If
	If chk14b =	"" Then chk14b = 0 End If
	If chk15b =	"" Then chk15b = 0 End If
	If chk16b =	"" Then chk16b = 0 End If
	If chk17b =	"" Then chk17b = 0 End If
	If chk18b =	"" Then chk18b = 0 End If
	If chk19b =	"" Then chk19b = 0 End If
	If chk20b =	"" Then chk20b = 0 End If

	SQLTitle = "-- ■■■■ 측정 기준 정보 관리 저장 ■■■■"
	SQL = "exec spSaveCheckingRule '" & fullLotNo & "', " & lotSubNo & ", " & rank & ", '" & types & "', '" & checkDt & "'" & _
		  ", " & chk1 & ", " & chk2 & ", " & chk3 & ", " & chk4 & ", " & chk5 & ", " & chk6 & ", " & chk7 & ", " & chk8 & ", " & chk9 & ", " & chk10 & _
		  ", " & chk11 & ", " & chk12 & ", " & chk13 & ", " & chk14 & ", " & chk15 & ", " & chk16 & ", " & chk17 & ", " & chk18 & ", " & chk19 & ", " & chk20 & _
		  ", " & chk1a & ", " & chk2a & ", " & chk3a & ", " & chk4a & ", " & chk5a & ", " & chk6a & ", " & chk7a & ", " & chk8a & ", " & chk9a & ", " & chk10a & _
		  ", " & chk11a & ", " & chk12a & ", " & chk13a & ", " & chk14a & ", " & chk15a & ", " & chk16a & ", " & chk17a & ", " & chk18a & ", " & chk19a & ", " & chk20a & _
		  ", " & chk1b & ", " & chk2b & ", " & chk3b & ", " & chk4b & ", " & chk5b & ", " & chk6b & ", " & chk7b & ", " & chk8b & ", " & chk9b & ", " & chk10b & _
		  ", " & chk11b & ", " & chk12b & ", " & chk13b & ", " & chk14b & ", " & chk15b & ", " & chk16b & ", " & chk17b & ", " & chk18b & ", " & chk19b & ", " & chk20b

	If xMode="debug" Then 
		Call showDebug(SQLTitle,SQL) 
	End If 

'Response.write SQL
'Response.end
	DbCon.Execute SQL

	Call rsWithXML("Save OK!")
%>